import request from '@/utils/request'

export default {
    //添加课程分类列表  
    addCourseInfo(courseInfo){
        return request({
            url: `/eduservice/course/addCouserInfo`,
            method: 'post',
            data:courseInfo
          })
    },
    //讲师下拉列表 
    getListTeacher(){
        return request({
            url: `/eduservice/teacher/findAll`,
            method: 'get'
          })
    },
     //课程信息回显
    getCourseInfoById(courseId){
        return request({
            url: `/eduservice/course/getCourse/${courseId}`,
            method: 'get'
          })
    },
    //课程信息更新
    updateCourseInfoById(courseInfo){
        return request({
            url: `/eduservice/course/updateCourseInfo`,
            method: 'post',
            data:courseInfo
          })
    },
    //获取课程取人信息
    getPublishCourseInfo(id){
        return request({
            url: `/eduservice/course/CoursePublishInfo/${id}`,
            method: 'get'
          })
    },
     //课程信息最终发布
    publishCourse(id){
        return request({
            url: `/eduservice/course/publishCourse/${id}`,
            method: 'post'
          })
    }
}

